package com.deng.search.mq;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
@Data
@AllArgsConstructor
public class PostMqIndexMessage implements Serializable {
    // 两种type
    public final static String CREATE_OR_UPDATE = "create_update";
    public final static String REMOVE = "remove";
    //操作文章id
    private Long postId;
    //操作类型
    private String type;
}
